using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Diagnostics.CodeAnalysis;

namespace SellAvi.Model
{
    [Table("TParams")]
    public partial class TParam
    {
        [SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")]
        public TParam()
        {
            AvitoProducts = new HashSet<AvitoProduct>();
            TCustomParams = new HashSet<TCustomParam>();
        }

        [DatabaseGenerated(DatabaseGeneratedOption.None)]
        public int Id { get; set; }

        [Required]
        [StringLength(4000)]
        public string ParamName { get; set; }

        [Required]
        [StringLength(4000)]
        public string LatinName { get; set; }

        public int CategoryId { get; set; }

        [Required]
        [StringLength(4000)]
        public string ParamValue { get; set; }

        [SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
        public virtual ICollection<AvitoProduct> AvitoProducts { get; set; }

        [SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
        public virtual ICollection<TCustomParam> TCustomParams { get; set; }
    }
}
